home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / mxutil / tspak17 / newsnd.for < prev    next >
Text File  |  1994-08-18  |  2KB  |  45 lines

  1. New Tandy .Snd File Format
  2. --------------------------
  3.  
  4. This is the new .snd file format used on the 2500-series.  From information 
  5. provided by John Ball (john.ball@two-t.com).
  6.  
  7. Like the old format, the new format header consists of a fixed part 
  8. followed by one or more sample descriptors.  The fixed part is 114 bytes;
  9. the sample descriptors are 46 bytes each.  Samples are still 8-bit unsigned
  10. PCM.
  11.  
  12. Fixed header:
  13.     offset       size        what
  14.       0          10 bytes    ASCIIZ name of sound.
  15.       0Ah        34 bytes    unknown
  16.       2Ch        2 bytes     New .snd ID:  1Ah 80h.
  17.       2Eh        word        Number of samples in file.
  18.       30h        word        Sound (instrument) number.
  19.       32h        16 bytes    unknown
  20.       42h        word        Compression code (0 = no compression, 1 =
  21.                              music compression, 2 = speech compression).
  22.       44h        20 bytes    unknown
  23.       58h        word        Sampling rate in Hz.
  24.       5Ah        24 bytes    unknown
  25.       72h        variable    Sample descriptors begin.
  26.  
  27. Sample descriptors (number given by word at 2Eh above):
  28.     offset       size        what
  29.       0          dword       Link to next sample descriptor (offset in file
  30.                              of next sample descriptor record).  0 if last.
  31.       4          2 bytes     unknown
  32.       6          byte        Pitch of note (01h-3Fh), 01 = A1 in American
  33.                              Standard Pitch; 0FFh if not set.
  34.       7          byte        unknown (compare old .Snd format; value is 00
  35.                              or FF, but seemingly unrelated to pitch setting)
  36.       8          2 bytes     Range of note.  First byte is lower limit,
  37.                              second is higher limit.  Values as for byte
  38.                              at offset 6 above; FF FFh if not set.
  39.       0Ah        dword       Offset in file of start of sound data for
  40.                              this sample.
  41.       0Eh        dword       Length of sample sound data in bytes.
  42.       12h        dword       Uncompressed length of sound data (number of
  43.                              samples).
  44.       16h        24 bytes    unknown
  45.